package day02.annotation.controller;

import day02.annotation.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @author 夏焰波
 * @date 2020-08-21 2:11
 */

@Controller
public class UserController {
    private UserService userService;

    @Autowired
    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void execute() {
        System.out.println("UserController execute...");
        userService.add();
    }
}
